//渠道用户时间汇总

'use strict';
const mongoose = require('mongoose');

let schema = new mongoose.Schema({
    channelId:{type:String,default:''}, //渠道ID，关联渠道表
    addTimeTick:{type:Number,default:0}, //统计日期
    eventName:{type:String,default:''}, //注册用户数  每日小时累计一次
    data:{type:Object,default:{}} //数据
},{versionKey:false});
schema.index({channelId: 1,addTimeTick:1,eventName:1});

schema.methods = {

};

module.exports = schema;